package dry.example.service;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.stereotype.Service;

@Service
public class NameService {

    @HystrixCommand(fallbackMethod = "b")
    public int a() {
        return 1 / 0;
    }

    public int b() {
        return 1000;
    }

}